package com.woniuxy.woniuticket.movieinfomodule.dao;

import com.woniuxy.woniuticket.pojo.CinemaVip;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface CinemaVipDAO {
    int deleteByPrimaryKey(Integer id);

    int insert(CinemaVip record);

    int insertSelective(CinemaVip record);

    CinemaVip selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(CinemaVip record);

    int updateByPrimaryKey(CinemaVip record);
    @Select("select * from t_cinema_vip")
    List<CinemaVip> queryAllVip();
    @Select("select id from t_cinema_vip where vname = #{vname}")
    Integer queryVipId(String vname);
}